Reprint: http://blog.csdn.net/kevin_darkelf/article/details/11371353Relationships and differences between inheritance, implementation, dependency, association, aggregation, and compositionThese relationships are described separately:InheritedRefers
Connections and differences between inheritance, implementation, dependency, association, aggregation, and combination
These relationships are described respectively:Inheritance
A class (called a subclass or sub-interface) inherits the functions of
Inter-class relationship
In the class diagram, apart from describing the names, attributes, and operations of individual classes, we also need to describe the relationships between classes because no classes exist independently, they usually need
When learning object-oriented design object relationships, the differences between dependency, association, aggregation, and combination are confusing. In particular, the last three types only have differences in semantics. Semantics refers to
UML diagram example: (you can use startuml for drawing, small size ^_^)
Http://www.blogjava.net/lukangping/archive/2010/08/01/327693.html
Aggregation: indicates that two objects are integral and partial.WeakLink, and the lifecycle of some parts
The relationship between classes and classes plays an important role in understanding object-oriented, and is often asked in interviews before, and I'll introduce you here. The following relationship exists between classes and classes:
(1)
UML relationship: Inheritance/generalization, implementation, dependency, association, aggregation, combination of association and difference, uml2016-07-12
These relationships are described respectively:
UML relationships: the relationships and
Software designers often divide software modules in various ways to achieve clearer design and higher reusability. When applying Maven to a real project, you also need to divide the project into different modules. The aggregation feature of Maven
Django Aggregation database Aggregation query, djangoaggregation
In today's applications, which are constantly adjusted based on requirements, not only do they need to be able to sort projects in alphabetical order or by creation date, you also need
Class diagram is used to describe the classes contained in the system and the relationship between them, to help people simplify the understanding of the system, it is an important product of the system analysis and design phase, but also the system
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.